package com.ly.dao;

import java.util.List;
import com.ly.pojo.domain.CustomerSupportRequestDO;
import org.apache.ibatis.annotations.Param;

/**
 * CustomerSupportRequestMapper
 *
 * @author Administrator
 * @date 2025-03-07 10:51:13
 */
public interface CustomerSupportRequestMapper {

    /**
     * 插入客户支持请求信息
     *
     * @Param customerSupportRequestDO
     * @Return int
     */
    int insert(CustomerSupportRequestDO customerSupportRequestDO);

    /**
     * 根据ID查询客户支持请求信息
     *
     * @Param requestId
     * @Return CustomerSupportRequestDO
     */
    CustomerSupportRequestDO selectById(Integer requestId);

    /**
     * 根据ID更新客户支持请求信息
     *
     * @Param customerSupportRequestDO
     * @Return int
     */
    int updateById(CustomerSupportRequestDO customerSupportRequestDO);

    /**
     * 统计所有客户支持请求信息
     *
     * @Return int
     */
    int countRequests();

    /**
     * 分页查询客户支持请求信息
     *
     * @Param pageIndex
     * @Param pageSize
     * @Return List<CustomerSupportRequestDO>
     */
    List<CustomerSupportRequestDO> selectRequestsByPage(Integer pageIndex, Integer pageSize);
}
